package com.zscat.mallplus.qsg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("qsg_gateway_device_info")
public class QsgGatewayDevice {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String deviceName;

    private String deviceType;

    private String ieeeEpAddr;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_datetime")
    private Date createDatetime;

    private Long gatewayId;

    private Long deviceId;

    private Integer storeId;

    @TableField(exist = false)
    private String belongDeviceName;

    private Integer isDoor;

    private Integer isVoice;

    @TableField("is_aircontrol")
    private Integer isAirControl;
}
